#include "stm32f10x.h"
#include "OLED.h"
#include "Delay.h"

int main(void) {
    // 初始化OLED
    OLED_Init();
    OLED_ShowChar(1, 1, 'X');
    OLED_ShowString(1, 3, "hello world!");
    OLED_ShowUnsignedNum(2, 1, 6666, 4);
    OLED_ShowSignedNum(2, 6, 1234, 4);
    OLED_ShowSignedNum(2, 12, -1234, 4);
    OLED_ShowHexNum(3, 1, 0xFC12, 4);
    OLED_ShowDouble(3, 8, 3.14159, 1, 5);
    OLED_ShowBinNum(4, 1, 1234, 16);

    Delay_S(3); // 延时3s后执行清屏
    // 执行清屏
    // OLED_Clear();

    while (1) {
    }
}
